package com.example.skudemo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class AttributeDTO {
    @Length(min = 1,max = 50,message = "属性名最大长度不能超过50")
    @NotBlank(message = "属性名不能为空")
    private String name;


    @Length(min = 0,max = 100,message = "备注最大长度不能超过100")
    private String remark;

    @Valid
    private List<AttributeValueDTO> propertyValueList;
}
